package br.com.agendavm.beans;

import javax.faces.event.ActionEvent;

import oracle.adf.model.BindingContainer;
import oracle.adf.model.BindingContext;
import oracle.adf.model.OperationBinding;
import oracle.adf.model.binding.DCBindingContainer;

public class SistemaBean {
    public SistemaBean() {
    }

    public void salvar(ActionEvent actionEvent) {
        // Add event code here...
        BindingContext bindingctx = BindingContext.getCurrent();
        BindingContainer bindings = (BindingContainer)bindingctx.getCurrentBindingsEntry();
        DCBindingContainer bindingsImpl = (DCBindingContainer)bindings;
        OperationBinding action = (OperationBinding)bindingsImpl.getOperationBinding("Commit");
        action.execute();
    }
}
